package com.zzxy.spring12.controller;

import com.zzxy.spring12.service.ITeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;


public class TeacherContriller {
    private ITeacherService teacherService;

    public ITeacherService getTeacherService() {

        return teacherService;
    }

    public void setTeacherService(ITeacherService teacherService) {

        this.teacherService = teacherService;
    }

    public void register(){
    teacherService.registerTeacher();
    }
}
